package org.huntaway.kindergarten.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the eventinfo table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="eventinfo"
 */

public abstract class BaseEventinfo  implements Serializable {

	public static String REF = "Eventinfo";
	public static String PROP_INTRODUCTION = "Introduction";
	public static String PROP_OPERATE_DATE = "OperateDate";
	public static String PROP_T_NAME = "TName";
	public static String PROP_AUTHOR = "Author";
	public static String PROP_ID = "Id";
	public static String PROP_REMARK = "Remark";
	public static String PROP_CREATE_DATE = "CreateDate";
	public static String PROP_T_CODE = "TCode";
	public static String PROP_EVENTTYPE = "Eventtype";
	public static String PROP_PERSON = "Person";


	// constructors
	public BaseEventinfo () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseEventinfo (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String tCode;
	private java.lang.String tName;
	private java.lang.String person;
	private java.lang.String remark;
	private java.lang.String introduction;
	private java.lang.String author;
	private java.util.Date operateDate;
	private java.util.Date createDate;
	private java.lang.Integer eventtype;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="event_id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: t_code
	 */
	public java.lang.String getTCode () {
		return tCode;
	}

	/**
	 * Set the value related to the column: t_code
	 * @param tCode the t_code value
	 */
	public void setTCode (java.lang.String tCode) {
		this.tCode = tCode;
	}



	/**
	 * Return the value associated with the column: t_name
	 */
	public java.lang.String getTName () {
		return tName;
	}

	/**
	 * Set the value related to the column: t_name
	 * @param tName the t_name value
	 */
	public void setTName (java.lang.String tName) {
		this.tName = tName;
	}



	/**
	 * Return the value associated with the column: person
	 */
	public java.lang.String getPerson () {
		return person;
	}

	/**
	 * Set the value related to the column: person
	 * @param person the person value
	 */
	public void setPerson (java.lang.String person) {
		this.person = person;
	}



	/**
	 * Return the value associated with the column: remark
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: remark
	 * @param remark the remark value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: introduction
	 */
	public java.lang.String getIntroduction () {
		return introduction;
	}

	/**
	 * Set the value related to the column: introduction
	 * @param introduction the introduction value
	 */
	public void setIntroduction (java.lang.String introduction) {
		this.introduction = introduction;
	}



	/**
	 * Return the value associated with the column: author
	 */
	public java.lang.String getAuthor () {
		return author;
	}

	/**
	 * Set the value related to the column: author
	 * @param author the author value
	 */
	public void setAuthor (java.lang.String author) {
		this.author = author;
	}



	/**
	 * Return the value associated with the column: operate_date
	 */
	public java.util.Date getOperateDate () {
		return operateDate;
	}

	/**
	 * Set the value related to the column: operate_date
	 * @param operateDate the operate_date value
	 */
	public void setOperateDate (java.util.Date operateDate) {
		this.operateDate = operateDate;
	}



	/**
	 * Return the value associated with the column: create_date
	 */
	public java.util.Date getCreateDate () {
		return createDate;
	}

	/**
	 * Set the value related to the column: create_date
	 * @param createDate the create_date value
	 */
	public void setCreateDate (java.util.Date createDate) {
		this.createDate = createDate;
	}



	/**
	 * Return the value associated with the column: eventtype
	 */
	public java.lang.Integer getEventtype () {
		return eventtype;
	}

	/**
	 * Set the value related to the column: eventtype
	 * @param eventtype the eventtype value
	 */
	public void setEventtype (java.lang.Integer eventtype) {
		this.eventtype = eventtype;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof org.huntaway.kindergarten.po.Eventinfo)) return false;
		else {
			org.huntaway.kindergarten.po.Eventinfo eventinfo = (org.huntaway.kindergarten.po.Eventinfo) obj;
			if (null == this.getId() || null == eventinfo.getId()) return false;
			else return (this.getId().equals(eventinfo.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}